package cn.two.model;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;


public class OaNews {

	private Integer newsId;

	private OaSubmit oaSubmit;
	private String newTitle;
	private OaDept oaDept;
	private OaUser oaUser;
	private String newContext;
	private Date newDate;	
	private Date beginTime;	
	private Date endTime;
	private int cpage;
	private int psize;
	private int flag;

	

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public int getCpage() {
		return cpage;
	}

	public void setCpage(int cpage) {
		this.cpage = cpage;
	}

	public int getPsize() {
		return psize;
	}

	public void setPsize(int psize) {
		this.psize = psize;
	}
   
	 
	 
	public Date getBeginTime() {
		return beginTime;
	}
    

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}


	public Date getEndTime() {
		return endTime;
	}


	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public Integer getNewsId() {
		return newsId;
	}

	public void setNewsId(Integer newsId) {
		this.newsId = newsId;
	}

	public OaSubmit getOaSubmit() {
		return oaSubmit;
	}

	public void setOaSubmit(OaSubmit oaSubmit) {
		this.oaSubmit = oaSubmit;
	}

	public String getNewTitle() {
		return newTitle;
	}

	public void setNewTitle(String newTitle) {
		this.newTitle = newTitle;
	}

	public OaDept getOaDept() {
		return oaDept;
	}

	public void setOaDept(OaDept oaDept) {
		this.oaDept = oaDept;
	}

	public OaUser getOaUser() {
		return oaUser;
	}

	public void setOaUser(OaUser oaUser) {
		this.oaUser = oaUser;
	}

	public String getNewContext() {
		return newContext;
	}

	public void setNewContext(String newContext) {
		this.newContext = newContext;
	}

	public Date getNewDate() {
		return newDate;
	}

	public void setNewDate(Date newDate) {
		this.newDate = newDate;
	}

	@Override
	public String toString() {
		return "OaNews [newsId=" + newsId + ", oaSubmit=" + oaSubmit + ", newTitle=" + newTitle + ", oaDept=" + oaDept
				+ ", oaUser=" + oaUser + ", newContext=" + newContext + ", newDate=" + newDate + "]";
	}

}